package com.aspose.cells;

class zdh extends zcdb {
   zdh(WorkbookSettings var1) {
      this.d = 157;
      this.c = new byte[26];
      byte var2 = 0;
      if (!var1.getReCalculateOnOpen()) {
         System.arraycopy(com.aspose.cells.b.a.zc.a(var1.f), 0, this.c, var2, 4);
      }

      int var4 = var2 + 4;
      switch(var1.getCalcMode()) {
      case 0:
         this.c[var4] = 1;
         break;
      case 1:
         this.c[var4] = 2;
      case 2:
      }

      var4 += 4;
      if (var1.getIteration()) {
         System.arraycopy(com.aspose.cells.b.a.zc.a(var1.getMaxIteration()), 0, this.c, var4, 4);
         System.arraycopy(com.aspose.cells.b.a.zc.a(var1.getMaxChange()), 0, this.c, var4 + 4, 8);
      }

      var4 += 12;
      this.c[var4] = 1;
      var4 += 4;
      int var3 = 0;
      if (var1.getReCalculateOnOpen()) {
         var3 |= 1;
      }

      if (!var1.d()) {
         var3 |= 2;
      }

      if (var1.getIteration()) {
         var3 |= 4;
      }

      if (!var1.getPrecisionAsDisplayed()) {
         var3 |= 8;
      }

      if (var1.getRecalculateBeforeSave()) {
         var3 |= 32;
      }

      System.arraycopy(com.aspose.cells.b.a.zc.a(var3), 0, this.c, var4, 2);
   }
}
